package com.yicong.ants;

import androidx.multidex.MultiDexApplication;

import com.cchao.simplelib.LibCore;
import com.cqyc.network.utils.ToastUtils;
import com.tianmu.utils.TianmuPackageStrategy;
import com.yicong.ants.manager.app.AntActivityListener;

import cn.jiguang.api.utils.JCollectionAuth;

public class App extends MultiDexApplication {

    public static final String TAG = App.class.getName();
    public static AntActivityListener mLifecycleCallListener = new AntActivityListener();
    public static String hsAppID = "538175";

    @Override
    public void onCreate() {
        super.onCreate();
        JCollectionAuth.setAuth(this, false);
        //对全局属性赋值
        registerActivityLifecycleCallbacks(mLifecycleCallListener);
        LibCore.init(this, new LibCoreSupport(), new LibCoreSupport.LibConfigImpl());
        ToastUtils.init(this);
    }

    @Override
    public String getPackageName() {
        return TianmuPackageStrategy.getTianmuPackageName(this);
    }
}

